package com.teach.controller.photo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.teach.service.impl.photo.PhotoPicClassImpl;
import com.teach.service.photo.PhotoPicClassService;

@RestController
@RequestMapping("/photo")
public class PhotoPicClassController {

	@Autowired
	private PhotoPicClassService impl1;
	
	@RequestMapping("picType.do")
	public Object doType() {
		return impl1.selectAll();
	}
	@RequestMapping("picTypeAll.do")
	public Object doTypeAll(@RequestParam("name")String picTypeId) {
		return impl1.selectType(picTypeId);
	}
}
